package com.probox.common.entity.domain.recharge;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.probox.common.core.annotation.Excel;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * 充值对应的权益对象 recharge_record_rights
 *
 * @author usoft
 * @date 2022-11-02
 */
@Data
@NoArgsConstructor
@Accessors(chain = true)
@TableName("recharge_record_rights")
public class RechargeRecordRights implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * 详细ID
     */
    //默认主键自增
    @TableId(value = "detail_id", type = IdType.AUTO)
    private Long detailId;

    /**
     * 储值记录ID
     */
    @Excel(name = "储值记录ID")
    private Long recordId;

    /**
     * 充值ID
     */
    @Excel(name = "充值ID")
    private Long rechargeId;

    /**
     * 权益ID
     */
    @Excel(name = "权益ID")
    private Long rightId;

    /**
     * 权益类型商品类型(service-服务项目/card-卡券/product-实体商品/coupon-优惠券)
     */
    @Excel(name = "权益类型商品类型(service-服务项目/card-卡券/product-实体商品/coupon-优惠券)")
    private String rightType;

    /**
     * 权益类型ID商品ID(服务项目ID/套餐卡ID/商品ID/优惠券ID)
     */
    @Excel(name = "权益类型ID商品ID(服务项目ID/套餐卡ID/商品ID/优惠券ID)")
    private Long rightObjectId;

    /**
     * 显示顺序
     */
    @Excel(name = "显示顺序")
    private Long rightSort;

    /**
     * 权益数量
     */
    @Excel(name = "权益数量")
    private Long rightAmount;

    /**
     * 数据状态（0-无效/1-有效）
     */
    @Excel(name = "数据状态", readConverterExp = "0=-无效/1-有效")
    private String dataStatus;

    /**
     * 创建人
     */
    @Excel(name = "创建人")
    private Long createUser;

    /**
     * 创建时间
     */
    private Date createTime;

    /**
     * 创建人名称
     */
    @Excel(name = "创建人名称")
    private String createName;

    /**
     * 修改人
     */
    @Excel(name = "修改人")
    private Long updateUser;

    /**
     * 修改时间
     */
    private Date updateTime;

    /**
     * 修改时间
     */
    @Excel(name = "修改时间")
    private String updateName;


}
